package com.sh.rbac.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sh.rbac.domain.dto.loginLog.LoginLogQueryDTO;
import com.sh.rbac.domain.entity.LoginLog;
import com.sh.rbac.domain.vo.loginLog.LoginLogVO;
import jakarta.servlet.http.HttpServletResponse;

/**
 * @author lucky
 * @description 针对表【sys_login_log(登录日志记录表)】的数据库操作Service
 * @createDate 2024-07-01 20:35:59
 */
public interface LoginLogService extends IService<LoginLog> {

    /**
     * 分页查询登录日志列表
     *
     * @param current          当前页
     * @param limit            每页显示条数
     * @param loginLogQueryDTO 查询条件
     * @return 分页查询结果
     */
    Page<LoginLogVO> getPage(Long current, Long limit, LoginLogQueryDTO loginLogQueryDTO);

    void exportData(Integer startCount, Integer endCount, HttpServletResponse response);
}
